#include<stdio.h>
#include<limits.h>

int int_shifts_are_logical(){

    /*1 shift left by w - 1, then we get INT_MIN*/
    int tmp = 1 << ((sizeof(int) << 3) - 1);

    /*   INT_MIN shift right by w - 1,
     *   if we get -1 , it means int shifts are logical;
    */
    tmp >>= ((sizeof(int) << 3) - 1);

    return tmp == -1;
}


int main(void){

    printf("%d\n",int_shifts_are_logical());

    return 0;
}
